package com.example.mybatisdemo.springbootmybatis.service;


import com.example.mybatisdemo.springbootmybatis.domian.User;
import com.example.mybatisdemo.springbootmybatis.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;


    public Integer save(User user){
        return userMapper.insert(user);
    }

}
